#include <gtest/gtest.h>
#include <base/Mem.h>
#include "base/Types.h"

struct Test6 : ::testing::Test
{
    virtual void TearDown() override
    {
        if (!hasUB()) retUB(0);
    }
};

extern bool DbsAccess_GetS1Association(P_DBS_GetS1Association_REQ* req, P_DBS_GetS1Association_ACK* ack);

TEST_F(Test6, should_has_ub_after_call_func)
{
    P_DBS_GetS1Association_REQ req;
    P_DBS_GetS1Association_ACK ack;
    bool result = DbsAccess_GetS1Association(&req, &ack);
    ASSERT_TRUE(hasUB());
    ASSERT_FALSE(result);
    ASSERT_TRUE(ack.ucS1AssoNum == 101);
}
